79a19a57a0daa39393a42800f939883c9def9c65,device/iothub-java-client/src/main/java/com/microsoft/azure/iothub/transport/amqps/AmqpsIotHubConnection.java,AmqpsIotHubConnection,close,#,196

Before Change



        // Codes_SRS_AMQPSIOTHUBCONNECTION_15_014: [The function shall stop the Proton reactor.]
        this.reactorFuture.cancel(true);
        this.executorService.shutdown();
    }

    /**

After Change



        // Codes_SRS_AMQPSIOTHUBCONNECTION_15_013: [The function shall close the AMQPS sender and receiver links,
        // the AMQPS session and the AMQPS connection.]
        if (this.sender != null)
            this.sender.close();
        if (this.receiver != null)
            this.receiver.close();
        if (this.session != null)
            this.session.close();
        if (this.connection != null)
            this.connection.close();

        // Codes_SRS_AMQPSIOTHUBCONNECTION_15_014: [The function shall stop the Proton reactor.]
        if (this.reactorFuture != null)
            this.reactorFuture.cancel(true);
        if (this.executorService != null)
            this.executorService.shutdown();
    }

    /**